#!/bin/bash
name=java
echo "Stopping $name Application"
kill -9 `ps -ef | grep $name | grep -v grep | awk '{print $2}'`
echo "Stopping $pid"

# 依次Kill
if [ -n "$pid" ]
then
	kill -9 $pid
fi
echo "Server stopped."

sh /home/bes/BES955/AdminServer/bin/startManagement

sleep 10s
sh /data/NODE-1/bin/startNode --user=admin --password=B#2008_2108#es --startinstances=true

sleep 10s
tail -Fn200 /data/INS-18080/logs/server.log